package com.example.teesystem.entity;

import com.example.teesystem.common.utils.TimeUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * 登陆后的身份信息
 * @author punch
 * @data 2021-09-27 11:03
 */
@Setter
@Getter
public class AuthenticationInfo {
    private String token;           //身份牌token
    private int theLastUseSecond;   //上次进行权限验证时间，每次进行权限验证后更新时间

    public AuthenticationInfo(){}

    public AuthenticationInfo(String token){
        this.token=token;
        theLastUseSecond= TimeUtil.getSecondTimestamp();
    }
}
